<#include "../common/_layout.html" />
<@head title="编辑">
<style type="text/css">
	.cll {
		background-color: #ddd;
	}
</style>
</@head>
<@layout menu='/role'>

<section class="content">
	<div class="row">
		<div class="col-xs-12">
			<div class="box">
				<form action="${ctx}/role/save" method="post" role="form">
					<legend>添加/修改信息</legend>
					<input type="hidden" name="id" id="id" value="${role.id!}">
					<div class="form-group">
						<label for="description">角色描述</label>
                        <textarea id="description" name="description" class="form-control" rows="5">${role.description!}</textarea>
					</div>
					<div class="form-group">
						<label for="isSystem">是否是管理员</label>
						<select class="form-control" id="isSystem" name="isSystem" placeholder="是否是管理员" value="${role.isSystem!}">
							<option value = "1" <#if role.isSystem??&&role.isSystem==1>selected="seleceted"</#if>>是</option>
							<option value = "0" <#if role.isSystem??&&role.isSystem==0>selected="seleceted"</#if>>否</option>
						</select>
					</div>
					<div class="form-group">
						<label for="name">角色名</label>
						<input type="text" class="form-control" id="name" name="name" placeholder="角色名" value="${role.name!}">
					</div>
					<div class="form-group">
						<label for="value">角色值</label>
						<input type="text" class="form-control" id="value" name="value" placeholder="角色值" value="${role.value!}">
					</div>
					<button type="submit" class="btn btn-primary">保存</button><button type="submit" class="btn btn-cancle" onclick="javascript :history.back(-1);">返回</button>
				</form>
			</div>
		</div>
	</div>
</section>
</@layout>
<@scripts>
<script type="text/javascript">
	$(document).ready(function(){

	});
</script>
</@scripts>